package com.example.usercenter.sys.dao;

import com.example.usercenter.common.base.BaseDao;
import com.example.usercenter.sys.entity.OrgUser;
import com.example.usercenter.sys.entity.User;

import java.util.List;

public interface UserDao extends BaseDao<User, Long> {

    public User getByUsername(String username);

    public int insertUserRole(User user);

    public int insertOrgUser(User user);

    public int deleteOrgUser(long id);

    public int deleteUserRole(long id);

    public List<OrgUser> queryByUsername(String username);
}